@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <form id="menuForm">
		<div class="form-horizontal" id="menuInfoForm">
		
			<input type="hidden" id="id" name="id" value="${menu.id}">
            <input type="hidden" id="type" name="type" value="update">
			<div class="row">
				<div class="col-sm-6 b-r">
				
				    <#input id="pName" name="父级菜单" underline="true"
							hidden="parentId" readonly="readonly"
							  hiddenValue="${menu.parentId}" value="${pName}"
							clickFun="MenuInfoDlg.showMenuSelectTree(); return false;"
							style="background-color: #ffffff !important;"
							selectFlag="true" selectId="pcodeTreeDiv" selectTreeId="pcodeTree" selectStyle="width:244px !important;"/>
					
					<#input id="name" name="菜单名称" underline="true" value="${menu.name}" />
					
					<#select id="useable" name="是否显示" underline="true" value="${menu.useable}">
						<option value="1"
						@if(menu.useable=="1"){
						    selected
						@}
						
						>显示</option>
						<option value="0"
						@if(menu.useable=="0"){
						    selected
						@}
						
						>隐藏</option>
					</#select>
					
					<#input id="permission" name="权限标识" underline="false"  value="${menu.permission}"/>
					
				</div>
				<div class="col-sm-6">
					<#input id="href" name="请求地址" underline="true"   value="${menu.href}"/>
					<#input id="sort" name="排序" underline="true" value="${menu.sort}" />
					<#iconselect id="icon" placeholder="点击选择图标" name="图标" value="${menu.icon}"/>
					<#input id="remarks" name="备注" underline="false" value="${menu.remarks}" />
				</div>
			</div>

			<div class="row btn-group-m-t">
				<div class="col-sm-10">
					<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="MenuInfoDlg.editSubmit()"/>
					<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="MenuInfoDlg.close()"/>
				</div>
			</div>
		</div>
      </form>

    </div>
</div>
<script src="/modular/system/menu/menu_info.js"></script>
@}
